package spring.myh.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
**2020年7月16日--下午5:34:46
**@version:
**莫耀华:
**@Description:
*/
@RestController
public class Controller {

	@Value("${spring.application.name}")
	private String applicationName;
	@Value("${eureka.client.service-url.defaultZone}")
	private String eurekaService;
	@Value("${server.port}")
	private String port;

	@RequestMapping(value = "/config")
	public String getConfig() {
		return "applicationName=" + applicationName + "eurekaService=" + eurekaService + "port=" + port;
	}

}
